﻿using System;
using System.Linq;
namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IPassengerRepository
    {
        // Default Add, Delete and save actions
        void Add(Passenger passenger);
        void Delete(Passenger passenger);
        void Save();

        // Querys
        IQueryable<Passenger> FindAllPassengers();
        Passenger GetPassenger(int id);
        Passenger GetPassengersByTourId(int id);
        void ChangePassengerAcceptedStatus(int tourId, string passengerSSN, char accepted, IPassengerRepository repo);

        
    }
}
    